﻿#ifndef ROLEDAO_H
#define ROLEDAO_H

#include <QObject>
#include <role.h>

class RoleDao
{
public:
    RoleDao(QSqlDatabase sqlDatabase);
    ~RoleDao();
    bool getPageListByParam(QList<Role> &list,const  uint64_t &page,const  uint64_t &pageSize);
    bool getTotalByParam(uint64_t &total);
    bool getList(QList<Role> &list);
    bool getOne(Role &object);
    bool saveOne(Role &object);
    bool deleteOne(Role &object);
private:
    QSqlDatabase db;
};

#endif // ROLEDAO_H
